package com.mocha.bss.org.api;

import com.mocha.bss.BssServerInfo;
import com.mocha.bss.org.dto.UserDTO;
import com.mocha.bss.org.api.fallback.MochaUserFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: songkui
 * @since: 2022/3/11 15:25
 */
@FeignClient(name = BssServerInfo.APPLICATION_NAME, contextId = "mochaUser",path = BssServerInfo.USER_PATH, fallbackFactory = MochaUserFeignFallback.class)
public interface MochaUserFeign {
    @PostMapping("/facade/test")
    boolean testFacade(@RequestBody UserDTO userPo);
}
